package com.nCovInfo.controller;


import com.nCovInfo.pojo.User;
import com.nCovInfo.util.FileUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.io.IOException;
import java.util.ArrayList;

/**
 * @author ouyang
 * @time 2021-07-24 21:50
 */
@Controller
public class LoginController {

    @Autowired
    FileUtils fileUtils;

    @RequestMapping("/login")
    public String login(@RequestParam("username") String username, @RequestParam("password") String password, ModelMap model) {
        ArrayList<User> userArrayList = new ArrayList<>();
        if(username.equals("111") && password.equals("111")){
            return "main";
        }
        return "index";
    }

    @RequestMapping("/upload")
	public String upload(){
    	return "";
	}
}
